<template>
  <div class="title_warp">
      <div class="title_div">
      <!-- 左面部分图片 -->
      <img :src="getImgPath + 'img/home/title.png'">
      <!-- 中间文字 -->
      <span class="title_count">最新上架</span>
      <!-- 右面部分图片 -->
      <img :src="getImgPath + 'img/home/title_r.png'">
      </div>
      <div class="title_hr">
        <hr>
      </div>
  </div>
</template>

<script>
import {mapGetters} from "vuex";
export default {
  name:"Title",
  data() {
    return {
      
    }
  },
  computed: {
    ...mapGetters("ImgPath",{
      getImgPath:"getImgPath"
    })
  },
}
</script>
<style lang="less" scoped>
  .title_div{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 0.5rem;
    background-color: #ffffff;
    margin-top: 0.06rem;
    padding: 0.1rem 0.08rem;
    box-sizing: border-box;
    font-size: 0.12rem;
    .title_count{
      font-size: 0.15rem;
      font-weight: bold;
      margin: 0rem 0.1rem;
      color: #1e1e1e;
    }
  }
  img{
    width: 1rem;
  }

  .title_hr{
    padding: 0rem 0.08rem;
    box-sizing: border-box;
    hr{
      background-color: #F6F6F6;
      height: 0.01rem;
      border: none;
    }
  }

  .title_hr{
    transform: translateY(-0.01rem);
  }
</style>